/*
 * @Author: HuangYue
 * @Date: 2022-02-27 14:57:19
 * @LastEditors: HuangYue
 * @LastEditTime: 2022-04-28 00:25:10
 * @FilePath: /graduation/src/services/mockApi/peopleManage.js
 * @Description:用户信息api
 */
import { request } from 'umi';

export async function getAllEngineers() {
  return request('/api/getAllEngineers');
}
export async function getAllPeople() {
  return request('/api/getAllPeople');
}
export async function deletePeopleByUid(parmas, options) {
  return request('/api/deletePeopleByUid', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: parmas,
    ...(options || {}),
  });
}
export async function updatePeople(parmas, options) {
  return request('/api/updatePeople', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: parmas,
    ...(options || {}),
  });
}
export async function addPeople(parmas, options) {
  return request('/api/addPeople', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: parmas,
    ...(options || {}),
  });
}
